package com.tyk.bookstore.back.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 书籍收藏
 */
@Schema(name = "BookCollectDo", description = "书籍收藏")
@Data
@TableName("book_collect")
public class BookCollectDo implements Serializable{

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "商品ID")
    @TableField(value = "book_id")
    private Long bookId;

    @Schema(description = "用户ID")
    @TableField(value = "member_id")
    private Long memberId;

    @Schema(description = "收藏时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
